/* 基础布局 */
#app {
  max-width: 1240px;
  margin: 0 auto;
}

/* 轮播图样式 */
.banner {
  position: relative;
  width: 100%;
  margin-bottom: 30px;
}

.carousel-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

/* 轮播指示器样式 */
#test1 .layui-carousel-ind {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

#test1 .layui-carousel-ind li {
  width: 16px;
  height: 2px;
  border: 1px solid rgba(0,0,0,0.3);
  border-radius: 3px;
  background-color: #f7f7f7;
  box-shadow: 0 0 6px rgba(255,0,0,0.8);
  transition: all 0.3s;
}

#test1 .layui-carousel-ind li.layui-this {
  width: 60px;
  height: 1px;
  border: 1px solid #7F4E16;
  border-radius: 0;
  background-color: #7F4E16;
}

/* 内容区块通用样式 */
.news,
.recommend {
  padding: 40px 0;
  display: flex;
  justify-content: center;
  background-color: #fff;
}

.box {
  width: 90%;
  max-width: 1200px;
}

/* 标题样式 */
.title {
  margin-bottom: 30px;
  text-align: center;
}

.title span {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  position: relative;
}

.title span::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: #7F4E16;
}

/* 列表样式 */
.list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.list-item {
  transition: transform 0.3s;
}

.list-item:hover {
  transform: translateY(-5px);
}

.list-item-body {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.list-item:hover .item-image {
  transform: scale(1.05);
}

.item-info {
  padding: 15px;
}

.name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.time {
  font-size: 14px;
  color: #999;
}

/* 查看更多按钮 */
.view-more-button {
  display: inline-block;
  padding: 12px 30px;
  background: #7F4E16;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.view-more-button:hover {
  background: #6a4012;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(127,78,22,0.3);
}

.view-more-button .layui-icon {
  margin-left: 5px;
  font-size: 14px;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .title span {
    font-size: 24px;
  }
  
  .list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .item-image {
    height: 160px;
  }
} 